package com.example.tired1.zyfypt_0131shiyining;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class RegisterActivity extends AppCompatActivity {
  private Button zhuceButton;
    private  Button fanhuiButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        zhuceButton= (Button) findViewById(R.id.buttonzhuce);
        fanhuiButton=(Button)findViewById(R.id.buttonfanhui);
        zhuceButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(RegisterActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
        fanhuiButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(RegisterActivity.this,LoginActivity.class);
                startActivity(intent);

            }
        });


    }
}
